<template>
  <div>
     <span>{{str}}</span>
     <button  @click="fn()">两级反转</button>
   </div>
</template>
 
<script>
export default {

  data() {
    return {
      str:"hellow,world"
    }
  },
  methods: {
    fn(){
      this.str=this.str.split('').reverse().join('')
    }
  }
};
</script>

<style scoped>
     
</style>